package com.xmy.cultivate.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * <p>
 * 沟通社区
 * </p>
 *
 * @author Helin
 * @since 2024-03-02
 */
@Data
public class InterflowCommunity {

    /**
     * id
     */
    private Long id;

    /**
     * 教师编号
     */
    private Long staffId;

    /**
     * 编辑的第N次
     */
    private Integer compileNum;

    /**
     * 文本内容
     */
    private String text;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;

    @TableField(fill = FieldFill.UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updatedAt;

    @ApiModelProperty("删除时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime deletedAt;

    @ApiModelProperty("是否删除，0正常，1删除")
    @TableLogic(value = "0", delval = "1")
    @TableField(select = false)
    private Integer deleted;

    @TableField(exist = false)
    private String staffName;

    @TableField(exist = false)
    private String headImg;

    @TableField(exist = false)
    private String schoolName;

    @TableField(exist = false)
    private String rank;


}
